<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>旅游线路图片管理</title>
<!-- 调用CSS，JS -->
<link href="__PUBLIC__/Admin/images/style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="__PUBLIC__/js/jquery-1.6.min.js"></script>
<style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
	font-family: "宋体";
	font-size: 12px;
	color: #333333;
}
-->
</style>
</head>
<script language="javascript">

function del_attach(id){
	$.ajax({
            type:"POST",
            url:"__APP__/staffManage/delPic",
            data:{'id':id},
			datatype:'html',
            error: function(msg){
				alert(msg);
			},
            success:function(msg){
            	$('#div_pic_'+id).remove();
            }
         }); 
}
</script>

<body>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
              </tr>
              <tr>
                <td background="__PUBLIC__/Admin/images/index1_45.gif"></td>
                <td width="99%" bgcolor="#FFFFFF" style="height:490px; vertical-align:top;">
                  <table width="100%" border="0" cellspacing="10" cellpadding="0">
                    <tr>
                      <td>
                        <table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#C4E7FB">
                          <tr>
                            <td>
                              <table width="100%" border="0" cellpadding="0" cellspacing="5" bgcolor="#FFFFFF">
                                <tr>
                                  <td>&nbsp;<a href="#" class="font1">首页</a> &gt;员工管理&gt;附件管理</td>
                                </tr>
                              </table>                            </td>
                          </tr>
                        </table>                      </td>
                    </tr>
                    <tr>
                      <td>
                        <table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#BBD3EB">
                          <tr>
                            <td width="9%" height="27" align="center" background="__PUBLIC__/Admin/images/index1_72.gif" bgcolor="#FFFFFF">员工姓名</td>
                            <td width="91%" height="27" align="left" background="__PUBLIC__/Admin/images/index1_72.gif" bgcolor="#FFFFFF">
                              <label style="margin-left:20px;">{$staffPic['name']}</label>                            </td>
                          </tr>
                          <tr>
                            <td height="130" align="center" valign="middle" bgcolor="#E2F5FB">附件列表</td>
                            <td height="26" align="left" bgcolor="#FFFFFF">
                        
                              
                             
                              <table width="100" border="0" cellpadding="0" cellspacing="1" bgcolor="#BBD3EB" style="margin:3px;float:left;" > 
                                <tr>
                                  <td width="9%" height="27" align="center" bgcolor="#FFFFFF"><img src="__ROOT__/{$staffPic['photo']}" width="100" height="100" /></td>
                                </tr>
                                <tr>
                                  <td height="26" align="center" valign="middle" background="__PUBLIC__/Admin/images/index1_72.gif" bgcolor="#FFFFFF">员工照片</td>
                                </tr>
                              </table>
                             
                             <?php if(is_array($accessoryPic)) foreach( $accessoryPic as $vo ){ ?> 
                              <table width="100" border="0" cellpadding="0" cellspacing="1" bgcolor="#BBD3EB" style="margin:3px;float:left;" id="div_pic_{$vo['id']}"> 
                                <tr>
                                  <td width="9%" height="27" align="center" bgcolor="#FFFFFF"><img src="__ROOT__/{$vo['accessoryPath']}" width="100" height="100" id="pic_{$vo['id']}" /></td>
                                </tr>
                                <tr>
                                  <td height="26" align="center" valign="middle" background="__PUBLIC__/Admin/images/index1_72.gif" bgcolor="#FFFFFF">附件<img align="absmiddle" style="border:0;padding:0;margin-bottom:5px; cursor:pointer; cursor:hand" src="__PUBLIC__/Admin/images/delete.gif" width="22" height="19" alt="单击删除该图片" title="单击删除该图片" onclick="del_attach({$vo['id']});"  /></td>
                                </tr>
                              </table>
                             <?php } ?>
                            　</td>
                          </tr>
                      
                          <form METHOD=POST action="__APP__/staffManage/addAcce" enctype="multipart/form-data" > 
                           <input name="userId" type="hidden" value="{$staffPic['uid']}" />
                          <tr bgcolor="#E2F5FB">
                            <td width="9%" height="27" align="center">上传附件</td>
                            <td width="91%" height="27" align="left" valign="middle" bgcolor="#E2F5FB">&nbsp;<input type="file"  name="acce" > 


 </td>
                          </tr>
                          <tr bgcolor="#E2F5FB">
                            <td width="9%" height="27" align="center"> </td>
                            <td width="91%" height="27" align="left" valign="middle" bgcolor="#E2F5FB">&nbsp;<input id="btnSave" value="保存" type="submit" name="btnSave" id="btnSave" />                             </td>
                          </tr>
                          </form>
                        </table>                      </td>
                    </tr>
                  </table>
				  
				　                </td>
                <td background="__PUBLIC__/Admin/images/index1_47.gif"></td>
              </tr>
              <tr>
                <td width="8" height="8"><img src="__PUBLIC__/Admin/images/index1_91.gif" width="8" height="8" /></td>
                <td background="__PUBLIC__/Admin/images/index1_92.gif"></td>
                <td width="8" height="8"><img src="__PUBLIC__/Admin/images/index1_93.gif" width="8" height="8" /></td>
              </tr>
            </table>
</body>
</html>
